home *** CD-ROM | disk | FTP | other *** search
- Option Explicit
-
- On Error Resume Next
-
- Const msiOpenDatabaseModeReadOnly = 0
-
- do
- dim record, view
- Set view = Session.Database.OpenView("SELECT Text FROM Control WHERE Control = 'LicenseText'")
- if Err<>0 then Exit do
- view.Execute
- if Err<>0 then Exit do
-
- Set record = view.Fetch
- if record Is Nothing Then Exit Do
- if Err<>0 then Exit do
- Dim fso, MyFile
-
- Set fso = CreateObject("Scripting.FileSystemObject")
- if Err<>0 then Exit do
- Dim WshShell : Set WshShell = CreateObject("Wscript.Shell")
- if Err<>0 then Exit do
- dim tempFilePath : tempFilePath = WshShell.ExpandEnvironmentStrings("%TEMP%") & "\NETCFEULA.rtf"
- if Err<>0 then Exit do
- Set MyFile = fso.CreateTextFile(tempFilePath, True)
- if Err<>0 then Exit do
- MyFile.Write(record.StringData(1))
- if Err<>0 then Exit do
- MyFile.Close
- if Err<>0 then Exit do
- WshShell.Run "write.exe " & tempFilePath
- exit do
- loop
-
-
-
-